package com.htu.ss.service.impl;

import com.htu.ss.mapper.DeptMapper;
import com.htu.ss.po.Dept;
import com.htu.ss.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DeptServiceImpl implements DeptService {
   @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
   @Autowired
   private DeptMapper deptMapper;
    @Transactional
    public Dept getDeptById(Integer deptno) {
        return deptMapper.getDeptById(deptno);
    }
}
